﻿using System.ServiceModel;
using System.ServiceModel.Activation;
using Catchbase.Service.Config;

namespace Catchbase.Service
{
    public class CatchbaseServiceHostFactory : ServiceHostFactory
    {
        protected override ServiceHost CreateServiceHost(System.Type serviceType, System.Uri[] baseAddresses)
        {
            new AutoMapperConfiguration().Configure(); //Todo with Unity
            return base.CreateServiceHost(serviceType, baseAddresses);
        }    }

    public class CatchbaseServiceHost : ServiceHost
    {
        public CatchbaseServiceHost(System.Type serviceType, System.Uri[] baseAddresses)
            : base(serviceType, baseAddresses)
        {
            
        }
    }
}